<template>
  <div class="fullscreen">
    <i @click="toggle" class="el-icon-full-screen"></i>
  </div>
</template>

<script>
import screenfull from 'screenfull'
export default {
  name: 'myfullscreen',
  methods: {
    toggle () {
      screenfull.toggle()
    }
  }
}
</script>

<style lang="scss">
.fullscreen {
  margin-right: 10px;
}
</style>
